<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/14
 * Time: 17:58
 */
$ousr_uid              = $route->bodyParams['ousr_uid'];               //用户ID
$ousr_date             = $route->bodyParams['ousr_date'];              //打卡日期
$ousr_address          = $route->bodyParams['ousr_address'];          //打卡位置
$ousr_is_overtime      = $route->bodyParams['ousr_is_overtime'];      //是否为加班打卡 0-否 1-是
$ousr_time             = $route->bodyParams['ousr_time'];              //打卡时间
$ousr_type             = $route->bodyParams['ousr_type'];              //打卡类型 0-上班 1-下班
$ousr_status           = $route->bodyParams['ousr_status'];            //打卡状态 0-正常 1-迟到 2-早退'
$ousr_early_late_time  = $route->bodyParams['ousr_early_late_time'];  //迟到或者早退的分钟数



//写入数组
$insertArr = [
    'ousr_uid'                => $ousr_uid,
    'ousr_date'               => $ousr_date,
    'ousr_address'            => $ousr_address,
    'ousr_is_overtime'       => $ousr_is_overtime,
    'ousr_time'               => $ousr_time,
    'ousr_type'               => $ousr_type,
    'ousr_status'             => $ousr_status,
    'ousr_early_late_time'   => $ousr_early_late_time,
];
//执行写入语句
$rsData = $db->mysqlDB->insert("oa_user_signin_record",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );